#ifndef ANIMAL_H
#define ANIMAL_H
enum Gender{male,female};
class Animal{
        protected:
                int age;
                int ageLimit;
                Gender sex;
        public:
                void setAge(int);
                int getAge()const;
                void addAge(int);
                void setAgeLimit(int);
                int getAgeLimit()const;
                Gender getSex()const;
                void setSex(Gender s);
                bool isMale();
                bool isFemale();
                virtual void print();
                virtual Animal* giveBirth()=0;
};
#endif
